package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 砍价
 * @Author: flyco
 * @Date:   2020-05-18
 * @Version: V1.0
 */
@Data
@TableName("sms_bargain")
@ApiModel(value="sms_bargain对象", description="砍价")
public class SmsBargain implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**活动名称*/
    @ApiModelProperty(value = "活动名称")
	private String name;
	/**使用平台：all->全部；app->app端；wap->移动端；pc->pc端；weixinMini->微信小程序*/
    @ApiModelProperty(value = "使用平台：all->全部；app->app端；wap->移动端；pc->pc端；weixinMini->微信小程序")
	@Dict(dicCode = "coupon_platform")
	private String platform;
	/**startTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "startTime")
	private Date startTime;
	/**endTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "endTime")
	private Date endTime;
	/**开房间后过期天数*/
    @ApiModelProperty(value = "开房间后过期天数")
	private Integer expireDays;
	/**规则描述*/
	@ApiModelProperty(value = "规则描述")
	private String content;
	/**状态：0-未开始 1-已开始*/
    @ApiModelProperty(value = "状态：0-未开始 1-已开始")
	private Integer status;
	/**砍价系数(0到100之间，越接近0就平均，接近100差别越大)*/
    @ApiModelProperty(value = "砍价系数(0到100之间，越接近0就平均，接近100差别越大)")
	private Integer slope;
	/**是否包邮：0-不免运费 1-免运费*/
    @ApiModelProperty(value = "是否包邮：0-不免运费 1-免运费")
	@Dict(dicCode = "yn")
	private Integer freeFreightFlag;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
